package thread;
public class Tread3 {
    public static void main(String[] args) {
        Thread t = new Thread(){
            @Override
            public void run(){
        while (true){
    System.out.println("执行Tread匿名run");
    try {
        Thread.sleep(2000);
    } catch (InterruptedException e) {
        throw new RuntimeException(e);
    }
                    }
            }

        };

        t.start();

    }
}
